package com.ljf.tijian.controller;

import com.ljf.tijian.ApiResponse;
import com.ljf.tijian.dto.CalendarRequestDto;
import com.ljf.tijian.service.CalendarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CalendarController {

    @Autowired
    CalendarService calendarService;

    @RequestMapping("/listCalendar")
    public ApiResponse listCalendar(@RequestBody CalendarRequestDto calendarRequestDto){

        ApiResponse apiResponse = new ApiResponse(200,"SUCCRESS",calendarService.listAppointmentCalendar(calendarRequestDto));
        return  apiResponse;
    }


}
